import React,{Component} from 'react';
import {connect} from 'react-redux';
import {hashHistory,Link} from 'react-router';

class UnloginContext extends Component{
    login(){
        hashHistory.push('/login')
    }
    refuse(){

    }
    render() {
        return (
            <div className="container">
                <div className="jumbotron">
                    <h2>查 看 购 物 车 需 要 先 登 录 您 的 账 号</h2>
                    <h2>您 还 未 登 录 ！</h2>
                    <h3>请 先   
                        <button className="btn btn-lg btn-primary" onClick={()=>{this.login()}}>登  录</button>
                    </h3>
                </div>        
            </div>
        )
    }
}




const getValue = (state)=>{
    return {
    }
}

const Unlogin = connect(getValue , {})(UnloginContext);

export default Unlogin;